{include file="public/header"}
	<style>
		.attr h1{
			padding: 0 10px;
			background-color: pink;
		}
		.attr .active{
			background-color: yellow;
		}
		.attr ul{
			padding: 10px;
		}
		.attr li a{
			font-size:4vw;
			text-decoration: underline;
		}
		.attr li span{
			font-size: 4vw;
		}
	</style>
</head>
<body>
	<header>
		<a href="{:url('category')}">
			<i class="icon-caidan2 icon iconfont"></i>
		</a>
		<form action="{:url('Cate/list')}" id="F" method="get">
			<input type="hidden" name="id" value="{$cid}">
			<input type="text" name="key" placeholder="输入要搜索的内容" value="{$key}">
			<a href="javascript:F.submit();"><i class="icon-sousuo2 icon iconfont"></i></a>
		</form>
		<a href="../address/address.html">
			<i class="icon-huiyuanzhongxinyonghutouxiang icon iconfont"></i>
		</a>
	</header>
	<div class="main">
		<section class="attr">
			<h1>商品筛选</h1>
			<ul>
				{volist name="attr" id="attr_list" empty="没有找到此商品属性"}
				<li>
					<span>{$key} : </span>
					{volist name="$attr_list" id="attr_list2"}
					<a href="{$attr_list2['url']}" class="{if(isset($all['attr_'.$attr_list2['id']]) && $all['attr_'.$attr_list2['id']]==$attr_list2['value'] || !isset($all['attr_'.$attr_list2['id']]) && $attr_list2['value']=='全部')}active{/if}">{$attr_list2['value']}</a>
					{/volist}
				</li>
				{/volist}
			</ul>		
		</section>
		<section class="plist list">
			<ul>
				{foreach $str as $v}
				<li>
					<a href="{:url('good/goodsInfo',['id'=>$v['id']])}">
						<img src="/static/{$v['photo_x']}" alt="">
					</a>
					<span class="pname">{$v['name']}</span>
					<span class="price">¥{$v['price_shop']}</span>
				</li>
				{/foreach}
			</ul>
		</section>
	</div>
	{include file="public/footer"}
</body>
</html>

					